package com.bonshotels;

import org.hibernate.Session;
import org.hibernate.Transaction;

import com.bonshotels.DataLayer.Hibernate.HibernateUtil;
import com.bonshotels.PresentationLayer.CtrlReservarHabitacio;

public class MainBonsHotels {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        
		Transaction tx = session.beginTransaction();
			
			CtrlReservarHabitacio crh = new CtrlReservarHabitacio();
			tx.commit();
			
			HibernateUtil.getSessionFactory().close();	
			
	}

}
